package uk.ac.bath.domains.mover;

import uk.ac.bath.legacy.Point;
import uk.ac.bath.legacy.Cell;
import uk.ac.bath.environment.MachineIF;

abstract public class MoverCell extends Cell {

    Point prevPoint;

    public MoverCell(MachineIF machine,
            Point point,
            double fitness,
            int id,
            int generation,
            int mutations,
            String tag) {
        super(machine, point, fitness, id, generation, mutations, tag);
        if (point != null) {
            this.prevPoint = (Point) (point.clone());
        }
    }

    public Point getPrevPoint() {
        return prevPoint;
    }
}




